using System;

namespace Laba4
{
    public class Program
    {
        public static void Main()
        {
            var matrA = new double[5,5];
            var matrB = new double[5];

            var random = new Random();
            for (int i = 0; i < matrB.Length; i++)
            {
                matrB[i] = random.NextDouble() + random.NextDouble() * 10;
                for (int j = 0; j < matrB.Length; j++)
                    matrA[i, j] = random.NextDouble() + random.NextDouble() * 10;
            }
            Console.WriteLine("MatrA");
            for (int i = 0; i < matrB.Length; i++)
            {
                for (int j = 0; j < matrB.Length; j++)
                {
                    Console.Write("{0:##.###}  ", matrA[i, j]);
                }
                Console.WriteLine();
            }
            Console.WriteLine("MatrB");
            foreach (var x in matrB)
                Console.Write("{0:##.###}  ", x);                  
        }
    }
}

